cmake_minimum_required(VERSION 2.4)
project(net)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -g")

set(SOURCE_FILES event_loop.c socket.c buffer.c protocol.c)

add_executable(server example/server.c ${SOURCE_FILES})

add_executable(client example/client.c ${SOURCE_FILES})